
import { eMenuType } from '@/interface/enum';
import { RouteRecordRaw } from 'vue-router';
import { iRouteMeta } from '@/interface/iRouteInfo';
import { getMenuImageUrl } from '@/utils/ui';

const mainHomeMeta: iRouteMeta = {
    menu_show: true,
    menu_type: eMenuType.MENU,
    normal: getMenuImageUrl('room.png'),
    hover: getMenuImageUrl('room_hover.png'),
    parentPath: '',
    sort: 1,
    title: "酒店管理",
    elements: [

        // {
        //   key: 'online_pay_refund',
        //   title: '退款功能',
        //   local_path: RouterConfig.Main.fullPath,
        //   menu_type: eMenuType.ELEMENT,
        // },
    ],
};

export const hotels_routes: RouteRecordRaw = {
    name: "hotels",
    path: "/hotels",
    meta: mainHomeMeta,
    redirect: "/hotels/hotel",
    component: () => import("@/layout/ContentLayout.vue"),
    children: [
        {
            path: "/hotels/hotel",
            name: "hotel_list",
            meta: {
                menu_show: true,
                menu_type: eMenuType.PAGE,
                title: "酒店列表",
                parentPath: '/hotels',
                sort: 1,
            },
            component: () => import("@/views/hotels/hotels/indxe.vue")
        }
    ]
};
